Hi Steve,
Its hard to say without having more details but basically Mach3 handles all the GCode commands and trajectory planning.
A Motion Plugin just
receives X, Z, A step positions vs time to execute from Mach3.
Probably the first thing to determine would be if the trajectory is somehow incorrect, or if the motors are miss stepping due to too high of feed rate or something. After the bad motion if you go back to the Reference Position is the position correct?
Regards TK
Group: DynoMotion |
Message: 8496 |
From: tall_man_dancer |
Date: 10/19/2013 |
Subject: Re: G93 not working correctly. Is this Mach3 or Kflop issue? |
There are no steppers and the machine has no positioning problems. Servos are Mitsubishi industrial AC servo, specifically J3 series and they are new. As I mentioned, if the G93 is removed, the same program with no other changes, cuts correctly. I have been threading on these machines for a couple of years and when Kflop was added the threading continued to work fine. ONLY when G93 was used did things go bad. You say that Kflop receives coord vs time and this is where the problem is. The speeds seem correct, but the motion coordination goes bad, specifically the X axis position . Threads are cut in six passes. At the end of the run the X axis has lost registration. The servo is no longer in the right position, but something that I did not check is to see if the DRO is showing the correct X position. I will get that info and post back. Note that I have no way to test MACH without the Kflop at this time, so I cannot discover for myself if G93 works correctly using the PP. ---In dynomotion@yahoogroups.com, <tk@...> wrote:
Hi Steve,
Its hard to say without having more details but basically Mach3 handles all the GCode commands and trajectory planning.
A Motion Plugin just
receives X, Z, A step positions vs time to execute from Mach3.
Probably the first thing to determine would be if the trajectory is somehow incorrect, or if the motors are miss stepping due to too high of feed rate or something. After the bad motion if you go back to the Reference Position is the position correct?
Regards TK
From: Steve Simpson <steve@...> To: dynomotion@yahoogroups.com Sent: Tuesday, October 15, 2013 11:52 PM Subject: [DynoMotion] G93 not working correctly. Is this Mach3 or Kflop issue?
This is my first actual use of G93 with Kflop and the motion is not accurate. Coordinated motion between X,Z, and A axis (rotary) for thread cutting. I have tracked the problem to the G93 command, but from there I don't know whether to look at Kflop or MACH.
Problem: With G93 the X to A axis relationship does not stay synchronized and the threads get cut off . Remove G93 and the threads cut correctly.
Question: For now, I just need to know where the G93 calculations are done so that I can direct my questions to the right forum. Thanks, - Steve
|
|
Group: DynoMotion |
Message: 8497 |
From: tall_man_dancer |
Date: 10/19/2013 |
Subject: Re: G93 not working correctly. Is this Mach3 or Kflop issue? |
More info: MACH is definitely not running the G-code properly, so the problem *might* be the symptom of another MACH bug. As I am aware of some past anomalies in MACH's handing of subroutines, I put some debug stuff in the program to report certain statuses on the Mach message line and it turns out MACH was skipping directly to iteration 5 (of 15). (note I stated 6 'passes' previously, but the thread area is actually divided into 6 sections and each section requires multiple passes to complete, the number being determined by the width and depth of the particular section) As in previous MACH weirdness, a solution was to insert delays. Mach does not track threads very well and using variables and math in a G-code program can cause MACH to get ahead of itself. NOTE: Just as an FYI, this behavior is particularly nasty when using macros. MACH apparently hands off the macro to VB and then continues immediately to run the next G-code block. If the program uses a variable that will be updated by the script, MACH may pass that block of G-code before the var is updated, thereby using the wrong data. This required the work around of adding flags and delays to assure MACH waited for the new data. A related FYI: MACH now can run named scripts and that facility automatically causes MACH to wait for the named script to return, thereby eliminating the need for all of the smoke and mirrors. In the case of my threading program, apparently with G93 mode on, MACH was counting phantom macro iterations in the background somehow and starting on iteration 5 instead of 1. Each iteration used a pair of updated vars and there was some simple math in the subroutine. Exactly the conditions that can make MACH misbehave. Inserting a delay at the end of the sub cleared the problem. I have not tried this fix on the actual machine yet, but I will report back if the problem persists. Meanwhile, I hope this proves helpful to anyone having similar issues. ---In dynomotion@yahoogroups.com, <steve@...> wrote:
There are no steppers and the machine has no positioning problems. Servos are Mitsubishi industrial AC servo, specifically J3 series and they are new. As I mentioned, if the G93 is removed, the same program with no other changes, cuts correctly. I have been threading on these machines for a couple of years and when Kflop was added the threading continued to work fine. ONLY when G93 was used did things go bad. You say that Kflop receives coord vs time and this is where the problem is. The speeds seem correct, but the motion coordination goes bad, specifically the X axis position . Threads are cut in six passes. At the end of the run the X axis has lost registration. The servo is no longer in the right position, but something that I did not check is to see if the DRO is showing the correct X position. I will get that info and post back. Note that I have no way to test MACH without the Kflop at this time, so I cannot discover for myself if G93 works correctly using the PP. ---In dynomotion@yahoogroups.com, <tk@...> wrote:
Hi Steve,
Its hard to say without having more details but basically Mach3 handles all the GCode commands and trajectory planning.
A Motion Plugin just
receives X, Z, A step positions vs time to execute from Mach3.
Probably the first thing to determine would be if the trajectory is somehow incorrect, or if the motors are miss stepping due to too high of feed rate or something. After the bad motion if you go back to the Reference Position is the position correct?
Regards TK
From: Steve Simpson <steve@...> To: dynomotion@yahoogroups.com Sent: Tuesday, October 15, 2013 11:52 PM Subject: [DynoMotion] G93 not working correctly. Is this Mach3 or Kflop issue?
This is my first actual use of G93 with Kflop and the motion is not accurate. Coordinated motion between X,Z, and A axis (rotary) for thread cutting. I have tracked the problem to the G93 command, but from there I don't know whether to look at Kflop or MACH.
Problem: With G93 the X to A axis relationship does not stay synchronized and the threads get cut off . Remove G93 and the threads cut correctly.
Question: For now, I just need to know where the G93 calculations are done so that I can direct my questions to the right forum. Thanks, - Steve
|
|
| |